using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Redboil.Bfp.Core {
    public interface IRepository<T> where T : EntityBase {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="item"></param>
        void Add(T item);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        T this[object key] { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="item"></param>
        void Remove(T item);
    }
}